<table border="0" cellspacing="1" cellpadding="3" class="outer">
  <tr>
    <th nowrap><{$lang._LANG_MILE}></th>
    <th nowrap><{$lang._LANG_TICKET_POINT}></th>
    <th nowrap><{$lang._LANG_TICKET_GET}></th>
  </tr>
<{foreach item=m from=$mile}>
  <tr class="<{cycle values='odd,even'}>">
    <th>
      <{if $lang._REMITTACE_REVERSE}>
        <{$lang._REMITTACE_FROM}> <{$m->getShow('uid')}>:<{$m->getShow('uid')|xoops_user:uname}>
      <{else}>
        <{$m->getShow('uid')}>:<{$m->getShow('uid')|xoops_user:uname}><{$lang._REMITTACE_FROM}>
      <{/if}>
    </th>
    <td style="text-align:center;">
      <{$m->getShow('point')}>
    </td>
    <td style="text-align:center;">
      <{if $m->canBuy}>
        <form action="<{$smarty.const.XOOPS_URL}>/modules/<{$dirname}>/index.php?action=Accept" method="post" style="padding:0;margin:0;">
        <{xoops_token form=$actionForm}>
        <{xoops_input type=hidden name=access_uri value=$access_uri}>
        <{xoops_input type=hidden name=mile_id value=$m->get('mile_id')|intval}>
        <{xoops_input type=hidden name=rec_id value=0}>
        <{xoops_input type=hidden name=uid value=0}>
        <{xoops_input type=hidden name=reg_unixtime value=0}>
        <{xoops_input type=hidden name=point value=$m->get('point')|intval}>
        <{xoops_input type=hidden name=dirname value=$dirname}>
        <input type="submit" value="<{$lang._LANG_TICKET_GET}>" <{if $m->get('point')<0 && $m->get('point')|abs > $totalPoint}>disabled="disabled"<{/if}> />
        </form>
      <{else}>
        ---
      <{/if}>
    </td>
  </tr>
<{/foreach}>
</table>